import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/ListView.vue'
import ListView from "@/views/ListView.vue";
import AddView from "@/views/AddView.vue";
import UpdateView from "@/views/UpdateView.vue";

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'ListView',
    component: ListView
  }, {
    path: '/add',
    name: 'AddView',
    component: AddView
  },
  {
    path: '/update',
    name: 'UpdateView',
    component: UpdateView
  },


]

const router = new VueRouter({
  routes
})

export default router
